Rank of Matrix by Echelon Form